package com.gao.sentinel.common.res;

import com.gao.sentinel.common.Result;

/**
 * 下单结果
 */
public class OrderResult extends Result {

    /** 订单 ID */
    private Long orderNo;

    /** 产品 ID */
    private Long productId;

    /** 产品库存 */
    private Integer stockCount;

    /** 产品剩余库存 */
    private Integer stockSurplusCount;

    public OrderResult(String code, String info) {
        super(code, info);
    }

    public Long getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(Long orderNo) {
        this.orderNo = orderNo;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public Integer getStockCount() {
        return stockCount;
    }

    public void setStockCount(Integer stockCount) {
        this.stockCount = stockCount;
    }

    public Integer getStockSurplusCount() {
        return stockSurplusCount;
    }

    public void setStockSurplusCount(Integer stockSurplusCount) {
        this.stockSurplusCount = stockSurplusCount;
    }
}
